// DlgChangeConnectPoint.cpp : implementation file
//

#include "stdafx.h"
#include "DlgChangeConnectPoint.h"
#include "phsjig.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgChangeConnectPoint dialog

namespace Ue3dSolid
{
	CDlgChangeConnectPoint::CDlgChangeConnectPoint(CPHSJig *pJig, CWnd* pParent /*=NULL*/)
		: CDialog(CDlgChangeConnectPoint::IDD, pParent)
	{
		INIT_RESOURCE
		//{{AFX_DATA_INIT(CDlgChangeConnectPoint)
		// NOTE: the ClassWizard will add member initialization here
		//}}AFX_DATA_INIT
		m_pJig = pJig;
	}
	
	
	void CDlgChangeConnectPoint::DoDataExchange(CDataExchange* pDX)
	{
		CDialog::DoDataExchange(pDX);
		//{{AFX_DATA_MAP(CDlgChangeConnectPoint)
		// NOTE: the ClassWizard will add DDX and DDV calls here
		//}}AFX_DATA_MAP
	}
	
	
	BEGIN_MESSAGE_MAP(CDlgChangeConnectPoint, CDialog)
		//{{AFX_MSG_MAP(CDlgChangeConnectPoint)
		ON_WM_CREATE()
		ON_BN_CLICKED(IDC_PREV_BUTTON, OnPrevButton)
		ON_BN_CLICKED(IDC_NEXT_BUTTON, OnNextButton)
		//}}AFX_MSG_MAP
		END_MESSAGE_MAP()
		
		/////////////////////////////////////////////////////////////////////////////
		// CDlgChangeConnectPoint message handlers
		
		void CDlgChangeConnectPoint::OnPrevButton() 
	{
		m_pJig->SetToPrevConnectPoint();
	}
	
	void CDlgChangeConnectPoint::OnNextButton() 
	{
		m_pJig->SetToNextConnectPoint();
	}
	
	int CDlgChangeConnectPoint::OnCreate(LPCREATESTRUCT lpCreateStruct) 
	{
		if (CDialog::OnCreate(lpCreateStruct) == -1)
			return -1;
		
		END_RESOURCE
			
			return 0;
	}
	
}